package com.vhall.component.controller.tag.facade;

import com.vhall.component.entity.inav.vo.TagVO;
import com.vhall.component.entity.tag.vo.TagInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @author guoxin.wang
 * @date 2021/7/5 10:35
 */
@FeignClient(value = "TagInnerFacade", path = "/v4/tag/inner")
public interface TagInnerFacade {

    /**
     * 详情
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @PostMapping(value = "/tags-info")
    Map<Integer, String> tagsInfo(@Validated TagInfoVO reqVO);

    /**
     * 详情
     *
     * @param tagIds 参数
     * @return 返回值
     */
    @GetMapping(value = "/tag-list")
    List<TagVO> tagList(String tagIds);

}
